package com.yyf.springboot2.service.impl;

import com.yyf.springboot2.address.Area;
import com.yyf.springboot2.address.City;
import com.yyf.springboot2.address.Province;
import com.yyf.springboot2.mapper.AddressCacheMapper;
import com.yyf.springboot2.mapper.TAddressMapper;
import com.yyf.springboot2.service.AddressService;
import com.yyf.springboot2.service.AreaService;
import com.yyf.springboot2.service.CityService;
import com.yyf.springboot2.service.ProvinceService;

import javax.annotation.Resource;
import java.util.List;

public class AddressImpl  implements AddressService {
    @Resource
    private ProvinceService provinceService;
    @Resource
    private CityService cityService;
    @Resource
    private AreaService areaService;

    @Resource
    private TAddressMapper tAddressMapper;

//    @Resource
//    public AddressCacheMapper addressCacheMapper;

    @Override
    public void init() {
        provinceService.init();
        cityService.init();
        areaService.init();
    }

    @Override
    public List<Province> getProvinces() {
//        List<Province>  province = addressCacheMapper.getProvinces();
        return null;
    }

    @Override
    public List <City> getCities(Integer province) {
        return null;
    }

    @Override
    public List <Area> getCounties(Integer city) {
        return null;
    }
}
